package com.bkgy.controller.tcmReport.controller;

import com.bkgy.controller.tcmReport.service.ITbTcmEffOpenParamsService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Tag(name = "开卷4个步骤平均时间")
@Controller
@RequestMapping("/tcmReport")
@RequiredArgsConstructor
public class TbTcmEffOpenParamsController {
    private final ITbTcmEffOpenParamsService service;

    @Operation(summary = "【构建开卷耗时平均值基础数据】", description = "用于酸轧开卷异常统计")
    @PostMapping("/buildKaijuanTimeAvg")
    @ResponseBody
    public ResultData buildKaijuanTimeAvg() {
        return service.buildKaijuanTimeAvg();
    }

}
